import request from '@/utils/request'

// 查询挂号费列表
export function listRegistationcost(query) {
  return request({
    url: '/chy/registationcost/list',
    method: 'get',
    params: query
  })
}

// 查询挂号费详细
export function getRegistationcost(id) {
  return request({
    url: '/chy/registationcost/' + id,
    method: 'get'
  })
}

// 新增挂号费
export function addRegistationcost(data) {
  return request({
    url: '/chy/registationcost',
    method: 'post',
    data: data
  })
}

// 修改挂号费
export function updateRegistationcost(data) {
  return request({
    url: '/chy/registationcost',
    method: 'put',
    data: data
  })
}

// 删除挂号费
export function delRegistationcost(id) {
  return request({
    url: '/chy/registationcost/' + id,
    method: 'delete'
  })
}
